cask "station" do
  version "1.65.0"
  sha256 "a9831b0f9d698cfecd69a1c52b01e63f00b850fbec6766e2f2f760e5b53ee55d"

  # github.com/getstation/desktop-app-releases/ was verified as official when first introduced to the cask
  url "https://github.com/getstation/desktop-app-releases/releases/download/#{version}/Station-#{version}.dmg"
  appcast "https://github.com/getstation/desktop-app-releases/releases.atom"
  name "Station"
  homepage "https://getstation.com/"

  auto_updates true

  app "Station.app"

  uninstall quit: [
    "org.efounders.BrowserX",
    "org.efounders.BrowserX.helper",
  ]

  zap trash: [
    "~/Library/Application Support/Station/",
    "~/Library/Caches/org.efounders.BrowserX",
    "~/Library/Caches/org.efounders.BrowserX.ShipIt",
    "~/Library/Logs/Station",
    "~/Library/Preferences/org.efounders.BrowserX.helper.plist",
    "~/Library/Preferences/org.efounders.BrowserX.plist",
    "~/Library/Saved Application State/org.efounders.BrowserX.savedState",
  ]
end
